package com.wang.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id ;
    private String createBy;
    private Date createTime;
    private Date updateTime;
    private String updateBy;
    @TableLogic  //逻辑删除 默认效果 0 没有删除 1 已经删除
    private Integer isDeleted;
}
